﻿@using System.Web;
@model IEnumerable<MusicOnLine.Models.AACInfoes>
@{
    ViewBag.Title = "Index";
}
<fieldset>
    <legend>Songs List</legend>
    <div style="height: 10px;">
    </div>
    <div>
        <div class="dHeader" style="font-size: small; font-weight: bold">
            <div style="float: left; width: 105px;">
                专辑图片</div>
            <div style="float: left; width: 100px;">
                曲名</div>
            <div style="float: left; width: 100px;">
                所属专辑</div>
            <div style="float: left; width: 100px;">
                艺术家</div>
            <div style="float: left; width: 100px;">
                风格</div>
            <div style="float: left; width: 100px;">
                时长</div>
            <div style="float: left; width: 100px;">
                年分</div>
            <div style="float: left; width: 100px;">
                详细
            </div>
        </div>
        <div style="height: 20px;">
        </div>
        <div class="dContent" style="">
            @foreach (var item in Model)
            {                
                <div style="clear: both; font-size:small;">
                    <div style="float: left; width: 105px; position: relative; ">
                        <div style="position: relative; top: 0px; left: 0px;">
                            <img  width="100px"   src="../../@item.IMGPath">
                        </div>
                        <div title="Play" class="album-play" onclick="javascript:window.open('\\AACinfo\\Play\\@item.ID')"></div>
                        @*<div title="Play" class="album-play" onclick="javascript:window.location='\\AACinfo\\Play\\@item.ID'">
                        </div>*@
                    </div>
                    <div style="float: left; width: 100px;">
                        @Html.DisplayFor(modelItem => item.Name)</div>
                    <div style="float: left; width: 100px;">
                        @Html.DisplayFor(modelItem => item.Album)</div>
                    <div style="float: left; width: 100px;">
                        @Html.DisplayFor(modelItem => item.Artist)</div>
                    <div style="float: left; width: 100px;">
                        @Html.DisplayFor(modelItem => item.Genre)</div>
                    <div style="float: left; width: 100px;">
                        @Html.DisplayFor(modelItem => item.Time)</div>
                    <div style="float: left; width: 100px;">
                        @Html.DisplayFor(modelItem => item.Year)</div>
                    <div style="float: left; width: 100px;">
                        @Html.ActionLink("Details", "Details", new { id = item.ID })                       
                    </div>
                </div>                    
            }
        </div>
    </div>
</fieldset>
